package app.fugema.shop.main.home.model;

import java.math.BigDecimal;
import java.util.List;

public class SearchGoodsBean {

    /**
     * code : 0
     * msg : 成功
     * data : {"records":[{"prodId":77,"pic":"http://img-test.gz-yami.com/2019/05/1bdd097dbffd477799a7aca949377b20.jpg","prodName":"测试商品C","price":50,"prodCommNumber":0,"positiveRating":0,"praiseNumber":0},{"prodId":76,"pic":"http://img-test.gz-yami.com/2019/05/150d6c4a46914dbfa82690098b2ec4e7.jpg","prodName":"测试商品B","price":40,"prodCommNumber":0,"positiveRating":0,"praiseNumber":0}],"total":2,"size":9,"current":1,"searchCount":true,"pages":1}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * records : [{"prodId":77,"pic":"http://img-test.gz-yami.com/2019/05/1bdd097dbffd477799a7aca949377b20.jpg","prodName":"测试商品C","price":50,"prodCommNumber":0,"positiveRating":0,"praiseNumber":0},{"prodId":76,"pic":"http://img-test.gz-yami.com/2019/05/150d6c4a46914dbfa82690098b2ec4e7.jpg","prodName":"测试商品B","price":40,"prodCommNumber":0,"positiveRating":0,"praiseNumber":0}]
         * total : 2
         * size : 9
         * current : 1
         * searchCount : true
         * pages : 1
         */

        private int total;
        private int size;
        private int current;
        private boolean searchCount;
        private int pages;
        private List<RecordsBean> records;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getCurrent() {
            return current;
        }

        public void setCurrent(int current) {
            this.current = current;
        }

        public boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(boolean searchCount) {
            this.searchCount = searchCount;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public List<RecordsBean> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsBean> records) {
            this.records = records;
        }


    }

    public static class RecordsBean {
        /**
         * prodId : 77
         * pic : http://img-test.gz-yami.com/2019/05/1bdd097dbffd477799a7aca949377b20.jpg
         * prodName : 测试商品C
         * price : 50
         * prodCommNumber : 0
         * positiveRating : 0
         * praiseNumber : 0
         */

        private int prodId;
        private String pic;
        private String prodName;
        private BigDecimal price;
        private int prodCommNumber;
        private int positiveRating;
        private int praiseNumber;

        public int getProdId() {
            return prodId;
        }

        public void setProdId(int prodId) {
            this.prodId = prodId;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getProdName() {
            return prodName;
        }

        public void setProdName(String prodName) {
            this.prodName = prodName;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public int getProdCommNumber() {
            return prodCommNumber;
        }

        public void setProdCommNumber(int prodCommNumber) {
            this.prodCommNumber = prodCommNumber;
        }

        public int getPositiveRating() {
            return positiveRating;
        }

        public void setPositiveRating(int positiveRating) {
            this.positiveRating = positiveRating;
        }

        public int getPraiseNumber() {
            return praiseNumber;
        }

        public void setPraiseNumber(int praiseNumber) {
            this.praiseNumber = praiseNumber;
        }
    }
}
